package com.toe.pojo.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="UserCodeDTOUser对象")
public class UserCodeDTO implements Serializable {
    @ApiModelProperty(value = "手机号码",required = true,position = 11)
    @Pattern(regexp = "^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$",message = "请输入正确的电话号码!")
    private String phone;

    @ApiModelProperty(value = "短信验证码",position = 14)
    private String code;
}
